package Book;

public class BookList {
    private Book[] books = new Book[10];

    private int usedSize;//书的数目，只有未借出的


    public BookList() {
        books[0] = new Book("三国演艺", "吴承恩", 12.3, "小说");
        books[1] = new Book("西游记", "罗贯中", 13.4, "小说");
        books[2] = new Book("水浒传", "施耐庵", 5.2, "小说");

        this.usedSize = 3;
    }

    public Book[] getBooks() {
        return books;
    }

    public void setBooks(int pos, Book book) {
        this.books[pos] = book;
    }

    public int getUsedSize() {
        return this.usedSize;
    }

    public void setUsedSize(int currentSize) {
        this.usedSize = currentSize;
    }

}
